package com.geek.service;

import com.geek.domain.Order;
import com.geek.mapper.OrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderService {

    @Autowired
    private OrderMapper orderMapper;

    public void add(List<Order> list) {
        orderMapper.add(list);
    }

    public List<Order> get() {
        return orderMapper.get();
    }

    public void edit(Order order) {
        orderMapper.edit(order);
    }

    public void delete(Long orderId) {
        orderMapper.delete(orderId);
    }
}
